| Visual Basic (Declaration) | |
|---|---|
<ExtensionAttribute()> Public Overloads Shared Function With(Of TQuery As IEntityQuery)( _ ByVal query As TQuery, _ ByVal em As EntityManager _ ) As TQuery | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim query As TQuery Dim em As EntityManager Dim value As TQuery value = EntityQueryExtensions.With(Of TQuery)(query, em) | |
| C# | |
|---|---|
[ExtensionAttribute()] public static TQuery With<TQuery>( TQuery query, EntityManager em ) where TQuery: IEntityQuery | |
| C++/CLI | |
|---|---|
[ExtensionAttribute()] public: static TQuery^ Withgeneric<typename TQuery> ( TQuery^ query, EntityManager^ em ) where TQuery: IEntityQuery | |
Parameters
- query
- em
Type Parameters
- TQuery
| C# | Copy Code |
|---|---|
var mgr1 = new DomainModelEntityManager(); var query1 = mgr1.Customers.Where(c => c.Country == "UK"); var mgr2 = new DomainModelEntityManager(); var query2 = query1.With(mgr2); | |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family